﻿using System;
using System.Collections.Generic;
using System.Drawing;

namespace TodoSoft.Reporting
{
    public class ReportField
    {
        public string Caption { get; set; }
        public int Width { get; set; }
		public StringFormat StringFormat { get; set; }
		public Margins Padding { get; set; }
		public string FormatArgument { get; set; }
		public bool ShrinkToFit { get; set; }

	    public event Action<Dictionary<string, object>> CellClick;

	    public void OnCellClick(Dictionary<string, object> data)
	    {
		    if (CellClick != null)
			    CellClick(data);
	    }
    }
}
